package com.hzzc.sso.sdk;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

@ConfigurationProperties(prefix = "sso.web")
public class SsoWebSdkProperties {

    /**
     * 应用名字,在系统中配置
     */
    private String app;

    /**
     * 排除地址
     */
    private List<String> excludeds;

    /**
     * 单点登录服务器地址
     */
    private String ssoServer;

    /**
     * sso单灯登录界面
     */
    private String ssoLoginPage;


    /**
     * 退出登录地址
     */
    private String logoutPath;

    /**
     * 错误展示地址
     */
    private String errorShowPath;

    /**
     * session过期时间
     */
    private Long sessionDuration = 1000L * 60 * 60L * 2;

    public Long getSessionDuration() {
        return sessionDuration;
    }

    public SsoWebSdkProperties setSessionDuration(Long sessionDuration) {
        this.sessionDuration = sessionDuration;
        return this;
    }

    public String getErrorShowPath() {
        return errorShowPath;
    }

    public SsoWebSdkProperties setErrorShowPath(String errorShowPath) {
        this.errorShowPath = errorShowPath;
        return this;
    }

    public String getSsoLoginPage() {
        return ssoLoginPage;
    }

    public SsoWebSdkProperties setSsoLoginPage(String ssoLoginPage) {
        this.ssoLoginPage = ssoLoginPage;
        return this;
    }

    public String getLogoutPath() {
        return logoutPath;
    }

    public SsoWebSdkProperties setLogoutPath(String logoutPath) {
        this.logoutPath = logoutPath;
        return this;
    }

    public String getSsoServer() {
        return ssoServer;
    }

    public SsoWebSdkProperties setSsoServer(String ssoServer) {
        this.ssoServer = ssoServer;
        return this;
    }

    public List<String> getExcludeds() {
        return excludeds;
    }

    public SsoWebSdkProperties setExcludeds(List<String> excludeds) {
        this.excludeds = excludeds;
        return this;
    }

    public String getApp() {
        return app;
    }

    public SsoWebSdkProperties setApp(String app) {
        this.app = app;
        return this;
    }


}
